from django.conf.urls import url

from . import views

urlpatterns = [
    # 用户注册
    url(r'^users/$', views.UserView.as_view()),
    # 登陆授权
    url(r'^authorizations/$', views.UserAuthorizeView.as_view()),
    # 获取当前登陆用户数据
    url(r'^user/$', views.UserDetailView.as_view()),
    # 获取当前用户部分数据
    url(r'^user/(?P<pk>\d+)/part/$', views.UserPartInfoView.as_view()),
    # 判断当前手机号是否存在
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),
    # 短信验证码
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})$', views.SMSCodeView.as_view()),
    # 修改用户名
    url(r'^put_user/$', views.UserUpdateUserView.as_view()),
    # 发送邮件
    url(r'^sendemails/$', views.SendEmailView.as_view()),
    # 验证邮箱
    url(r'^emails/verification/$', views.VerifyEmailView.as_view()),
    # 增加浏览历史
    url(r'^browse_histories/$', views.UserBrowsingHistoryView.as_view()),
]
